<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/7/15 0015
 * Time: 17:16
 */

namespace app\api\controller\v1;


use library\Controller;
use think\Db;

class Contract extends Controller
{
    public function read($id)
    {
        $where = [['position','eq',$id],['status','eq','1']];
        $this->success('success',Db::name('Article')->where($where)->order('create_at desc')->find());
    }
}